/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.common.service.base.event;

import lombok.extern.slf4j.Slf4j;
import org.noear.solon.annotation.Component;
import org.noear.solon.annotation.Inject;
import org.noear.solon.core.event.EventBus;

/**
 * <b>(LogEventHandler)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/4/27
 */
@SuppressWarnings("unused")
@Slf4j
@Component
public class LogEventHandler {
    @Inject
    private OrderLogEventListener  orderLogEventListener;
    @Inject
    private ResultLogEventListener resultLogEventListener;

    public void eventPost(Object obj) {
        EventBus.publishAsync(obj);
        log.info("asyncEventBus post event {}", obj);
    }

}